using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Runtime.Serialization;

namespace DragDropTest{
    [DataContract]
    public class DemoData{
        public DemoData() {}

        public DemoData(FileInfo file){
            Name = file.Name.Split('.')[0];
            Description = "Type a Description";
            IsEnabled = false;
            FileName = file.Name;

        }

        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Description { get; set; }
        [DataMember]
        public int DisplayOrder { get; set; }
        [DataMember]
        public string FileName { get; set; }
        [DataMember]
        public bool IsEnabled { get; set; }

        public override string ToString()
        {
            return Name;
        }

        public static ObservableCollection<DemoData> GetData(){
            ObservableCollection<DemoData> data = new ObservableCollection<DemoData>();

            data.Add(new DemoData{Name = "File1",Description = "A Really Fine File1",DisplayOrder = 0,FileName = "File1.png",IsEnabled = false});
            data.Add(new DemoData { Name = "File2", Description = "A Really Fine File2", DisplayOrder = 0, FileName = "File1.png", IsEnabled = true });
            data.Add(new DemoData { Name = "File3", Description = "A Really Fine File3", DisplayOrder = 0, FileName = "File2.png", IsEnabled = true });
            data.Add(new DemoData { Name = "File4", Description = "A Really Fine File4", DisplayOrder = 0, FileName = "File3.png", IsEnabled = true });
            data.Add(new DemoData { Name = "File5", Description = "A Really Fine File5", DisplayOrder = 0, FileName = "File4.png", IsEnabled = true });
            data.Add(new DemoData { Name = "File6", Description = "A Really Fine File6", DisplayOrder = 0, FileName = "File5.png", IsEnabled = false });
            return data;
        }
    }
}